import type { Reducer, Effect } from 'umi';

export interface NodeStateType {
  tab: string;
}
export interface NodeModalType {
  namespace: string;
  state: NodeStateType;
  // effects: {
  //   getTab: Effect,
  // },
  reducers: {
    setTab: Reducer,
  }
}
const Model: NodeModalType = {
  namespace: 'node',

  state: {
    tab: 'single',
  },

  // effects: {

  // }

  reducers: {
    setTab (state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    }
  }
}

export default Model;
